package cn.webrx.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Id;
import javax.persistence.Table;


/**
 * <p>功能描述: </p>
 *
 * @author webrx
 * @version 1.0
 * @date 2020-09-16 17:35
 */
@Data
@Table(name = "news")
@NameStyle(Style.camelhumpAndLowercase)
public class News {
    @Id  @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String title;
    private String content;
}
